//
//  UIImage+Color.h
//  BeeQuick_One
//
//  Created by MinJing_Lin on 16/10/22.
//  Copyright © 2016年 MinJing_Lin. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, SFGradientType) {
    SFGradientFromTopToBottom = 1,            //从上到下
    SFGradientFromLeftToRight,                //从做到右
    SFGradientFromLeftTopToRightBottom,       //从上到下
    SFGradientFromLeftBottomToRightTop        //从上到下
};

@interface UIImage (Color)

- (UIImage *)createImageWithSize:(CGSize)imageSize gradientColors:(NSArray *)colorArr percentage:(NSArray *)percents gradientType:(SFGradientType)gradientType;

+(UIImage *)imageWithColor:(UIColor *)color;


@end

